<?php

declare(strict_types=1);

namespace App\CustHub\Request;

use Mine\MineFormRequest;

class SmartTagRuleRequest extends MineFormRequest
{

    public function getTagListRules()
    {
        return [
            'tag_group_id' => 'required'
        ];
    }

    public function tagGroupsRules()
    {
        return [
            'module' => 'required|3,4'
        ];
    }

    public function ruleListRules()
    {
        return [
            'tag_group_id' => 'required'
        ];
    }

    public function enableTagGroupRules()
    {
        return [
            'tag_group_id' => 'required',
            'enable' => 'required|in:0,1'
        ];
    }


    public function createRuleRules()
    {
        return [
            'tag_group_id' => 'required',
            'enable' => 'required|in:0,1',
            'rule' => 'required',
            'robot_ids' => 'required'
        ];
    }

    public function updateRuleRules()
    {
        return [
            'id' => 'required',
            'rule' => 'required',
            'robot_ids' => 'required'
        ];
    }

    public function ruleItemRules()
    {
        return [
            'tag_group_id' => 'required'
        ];
    }

    public function delRule()
    {
        return [
            'id' => 'required'
        ];
    }
}